package com;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		/*String s = "2010-11-20 17:31:31,567";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
        Date date = sdf.parse(s);*/
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
        Date date = new Date();
        date.setTime(date.getTime()-3*60*1000);
        String s = sdf.format(date);
        System.out.println(s);

	}

}
